added tab switching functionality for presentations