use tab load event instead of ajax global

also implemented some dom logic for example of caching contents for tabs (if they are reloaded when switching)
note, alternatively you could grab the tab create event and grab the jqXhr instance member's promise, and attach handlers to it's when