refactored localStorage values to object.