Make widgets use William's idea of constructing the object directly, rather than constructing the code string