encapsulate the datepicker-btn to a directive