correctly load pages