fixed issue where click handlers were gone after renaming tab