Added a class to handle tab switching.