Add cancel button to dialog windows