another fix for of ui elements using local storage