Factored out preview renderer
Reduced code complexity of Application page rendering