changed redirect to index for after initiating application