Table: Restrict selector scope by using generated popup ID

Closes gh-7342
Fixes gh-7341