changing file structure for auto-generated pages