render methods for router and template