refine dialog works now