can't we simply use a class in ThreadUI.container ?