refactoring on QuickAction