Remove duplicate elements in panel