adding proper pages