Add menu options to merge and renumber trees