Adjusted .on method to add events with bubbling controled for stopPropagation