changing events to support getting itemIds instead of actual items