move the minimap timer code to a callback.