changed main window to a tabbed version (early WIP)