hooking up template to urls