Implements option for hiding item in tree