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