pass variables to page and create a main menu link