added gitignore file and refactore index.ctp file