added datepicker functionality