logout, reorganized index