local storage fixes, load level from state