refactored code, started on school pages

reoorganised things so that update code is the bean classes