redesigned the main window