added or teacher role in controller to render resource page for teacher