Retrieve & Save Data to local storage

Added logic to retrive and save data to local storage