redesigning the main window