Prepare cancel button for dialog forms.