remove reference counting in widgets