working template rendering