refactor change levels methods to save state across page reloads, and on...

... changing a level by click