close popup on save