Set/Kill Logic Close window button

For regular indexes, the set and kill logic is generated automatically for you when you create the index. This code sets and kills an index entry.