trigger "clickApply" and "clickCancel" when the respective buttons are
clicked