third commit

added the close window option