add datepicker to widgets and change widgets options api