You have put a complete g-code print job there? These codes are not meant as print jobs and should not be big. They are part of printer configuration.
What you should include there is something like these:
@startNextPrintInQueue
Start the next print in the job queue if no print is running and a print is waiting. If a print is running, but paused, it will act like the "continue" button.
@printModelById id
Start a stored g-code model with given id. You can see the id in the model summary.
@printModelByName modelName
Starts one of the models in the model g-code list. Make sure the name is unique, or you might get a different print.
Depending on what button should do. It has no influence on viewer.