fixed calendar formatting issue and made onchange event on dates that were not running when updated from the calender.