manage localstorage max size exceeded