maintain show-index state