added mode support for new tabs.