use new api, fixed dismissAfter