Remove extra chat_tab function. Fixes #539