Fix index view, replace contents with content. And fix some identation errors.