Convert quick action IDs to data-action
Fix selected issue and combine code