added callback hooks to parent window to enable analytics integration