this contains the code for Event Delegation model