Fixing edit controller's cancel action.