Converted submission page to untested websocket code