added persistance to localStorage