check for edit mode for CancelEditText