refactor teacher view
Merge branch 'enrollment-functionality'