fix dialog bug and add datepicker function of selection of month and year