use tab events to defer map load.
moved defer map load to separate function that can be customised