adjusting the templates to support actual urls