added controller file for teacher