adjusted the structure of pages