Added DOM inspection and DOM event handler