Sets the active tab in the tabwidget