fixed misidentation in building_page method