You are using Wuid to construct a uniqueID for the new tab (which will prevent you from opening two details from the same WU) - just use the selections[i].Id instead (its unique for each row).