close editing on refresh