Action should trigger before switch animation