rebinding of page level event from html to document