Changing structure of game_ui so this isn't needed outside the dom event handlers