private void removeid(Widget wdg) {
		if (rwidgets.containsKey(wdg)) {
			int id = rwidgets.get(wdg);
			widgets.remove(id);
			rwidgets.remove(wdg);
		}
		for (Widget child = wdg.child; child != null; child = child.next)
			removeid(child);
	}