Implement BeforeNavigate2, NavigateComplete2 and DocumentComplete. And add some other functions