modify buttons and date validation