You will indeed have to describe what is not working.
Does not work is insufficient and too little.
When changing pages, old page is no longer in memory
- think of each page as smaller program and code accordingly
Arduino has Serial Monitor, important to make use of to debug.
putting meaningful messages to Serial Monitor increases understanding
Many examples in Iteadlib Arduino Nextion Library