fix open button can not quit viewer