clicking on id action link in table, with query selected, applies query to the id