Picking up Id values to update in AJAX. Added definition in routes.