Chat UI functions for localhost