rating in school view added

streamlining of code in progress