A better way to show a main window