Updating the renumber function to handle labels, selects, and span elements with a class of "number"