added a tip on handling events in dom