added a tabchange event to window
Merge branch 'master' into veronica