reverted back datepicker code