refine modal