Configure pagelet views
Cosmetic changes to template rendering
Modularize template code