changed onRouteCreated mechanism to promise style api