added hook onActivate to PieItem activation
adapted tutorial to new hooks provided for PartItem actions