Close popup after action