Simplify websocket status page code