minor fixes
Headerbar: Improving hideBarIfClickOutside function
Reset websocket handlers collection prior to adding a new one