Fixed routes for detail and edit