wait for scope vars to load before trying to access