Improved check for active child items

Updated to avoid full tree traversal.
Also noticed ```activateItems``` didn't do anything so that's been fixed.