Refactor the map buttons.
Refactor the map buttons.