modify close window command