added activity card logic