Update pages directory structure