Corrected saving and displaying of records