added dialog for datepicker