Fixed a small issue with the tab creation

Tab creation and adding done with one method called addTab. This
function creates a new tab and inserts the desired content into it. This
is usually your settings UI subdialog.