hooked up all the pages