Cleanup the checks for showing the edit button

  -  Since the page is accessible to teacher and admin no need
to check whether current user is teacher or not.

 - revert the changes in routes.rb accident.