Added functionality to the map in GUI