VPT: add onSelect to datepicker