popup directive hideDuplicates option + ref.