view: remove duplicate elements