Refactor controller so invokeAction is a separate concern