added ability to work with LocalStorage