modified datapicker init