changing implementation on the classcontroller - back and front