updating all urls in templates to use reverse urls