QB agrees to new deal to stay at school