updated template inheritance and hover for reroute