adding template, rendering and models