Added name property to Widget and made sure it is set properly in all widget constructors.