added websocket code and presentation