move definition of activeItem to corresponding scope