get notified when route is defined