Use a resolve promise to load data