changed redirect error in index view