move pages to their directory