[add] datepicker and some chore of code