added field, extended controller and views for teacher