saving before adding datepicker