Added tab change feature to chat