edit action created with the route being updated and the json being passed back to the view