added event listener for inappbrowser