fixing where the data is being set from Pages to AppController (all pages)