added edit form and routed it to update