improved localstorage functions and loading screen map transition slightly