when showing dialogs from CAB, action mode should only be finished after dialog is closed