part 3, added more hooks between window, page and root. updated
broadcasting framework for multi windows