changed redirect to index