make the index view work