adapt webserver to work on viewrender