Closing popup after update