corrected typo
moved generation of menu page into own class
removed comment