close window after add and refresh parent window