add localStorage Functionality. Cache api calls