add dismiss event example