fixed layout upgrade to localstorage