Implementation main window