onRender for frame buffer