add click to dismiss support