remove unused code and save core data in the first page
remove unused code and save core data in the first page