Apply nuiClass change immediately

Changing nuiClass after a control is moved to a window currently has no effect. This commit fixes this issue.