add close window functionality