Close popup after stopping time entry