Added functional datepicker