added datepicker and js functionality