Worked on the index and the bug about the url of the ajax.