refine the panel of input