removed the teacher controller and created REST based controller