smoothing the beginning of the page
refactor: moving the rendering of map to its own function, removing useless loadStates function