add closing window after click add button