Table xref/mref/categorical values: on click modal

Does not work for categorical values until #1204 is fixed