added closing window