add stop event directive
add stop event directive