changed controller and added delete