changed calender click from alert to dialog