Make tabs adjust to mainwindow