separated html rendering into template for demo app