Chat_ui and helper functions
Bugz squashed