Start window indexing at 1 and reindex windows when one is closed