Added support for tabcontrols