changed logout to indices