made web sockets work, changed layout