add selected template as parameter to url