run api before starting to load data