fixing success redirect to index