reference counting in widget