Fixing order of loading of theme bootstrap and hook in routes