Automatically renumber windows