adding datepicker functionality