move rendering code from InputViewer to RenderView #12