Adds cancel button to dialog.