Added datepicker functionality