getting the pages wired up