changed main window layout