when max history changes, properly update the text in the listview model