Use attr_accessor for widget