directive to preventDefault and stopPropogation