main window edit