changed to datepicker type