monkey-patch for closing calendar popup on month change