render the template