added update of max date on plot reload