added save button to dialog