adds datepicker funtionality