popup calendar onchange event fix