Because the style of BB uses `display:block` for the confirmation dialog, it overrides `display:none` always. So I choose to use `visibility` here.