added events support to the webview
added test cases for web view events