Now using a main window with tabs