error in call to index view