add dismiss block to toast