add url tag to templates

Using url tag the templates become more portable and respect the DRY
principle.