updating reverse route reference in template