added file dialog for openFile and saveAs