created an injected action and tighened up the cake pattern a bit