moved prism rendering to server side for speed