Add in promise to get data and show loading indicator
add a localStorage service
Use loading indicator in the new way