Changed item to global and local item, for tree and stores respecively. May still be some issues with referncing item in other files, these can be fixed as we implement