fixed routing issue in edit action