I want to separate the html code that creates the menu for an improved workflow when adding additional pages (see below the specific code). I found some suggestions on stack