you can use `OC.Router.registerLoadedCallback` function for this