Added tab switching functions