Added new edit functionality to the controller and added corresponding views