close date picker when calendar icon is clicked again