also close popup when date is reclicked in not null mode