check that the links on the layout go to the right pages