edit controller class