corrected popup behavior in the calendar