set alert to test what element to write function on