Implemented the edit and update actions with associateed views and routes.