changes in main file to test dialog window