dialog remove from dom on hide