Got the add page function working and saving the data on the edit screen.