simplifying urls for templates