Fixed the defect where the data would not persist between redrawing of activity by adding an application class