Changed toggleItem to work based on IDs