clean dialog common API