Added selective event binding for elements.