re factoring CheckActionState