template now works on the page