add logic to check for triples as soon as page loads