Tansform hierarchy widget to be cleanuppable