Added editor widget to main window