Removed extra chat_tab function