Changed urls in templates to {%url%}