Simplify handleAction