fix the namespaces
handle reparenting and schedule a repaint for some widgets