Cleaned up code and setup Toast alert for data stored in local storage on search of api