automatically renumber windows