I'm seeing a few things wrong.

I'm assuming the mainTabs tab panel is the tabs variable in the viewport? If it is then the mainTabs should not have renderTo config.

Also you shouldn't change...