Refactor view helper out of model.
Add configure datepickers.