move server side render into separate module