Don't repeat 4 lines over and over
mainPage -> page
;; -> ;