fixed sample object not hiding when ui is hidden, improved clarity