update date picker to a component
datepicker tweaks