added preventDefault and stopPropagation methods to events