move files from core module to index module. but bugs(Document not found) appear