Refactor operation detail dialog