Add a conditional to test for source of ajax call trigger