added redirect to index method