Templatizing and modeling the page