handle activity table