close popup when changing settings