Added onRouteLeave and onRouteLeave api