fix the index view to render contents correctly