Working 1st draft, added websocket open/close button