implemented a custom date picker