cleaning up non-pages files and adding index