update route in template