use a directive to define datepicker functionality