added auto-layout for tabs in main window