use list to replace panel