added hidCancel option