adding edit controller and view