sorts out an alert that flashes on the screen whenever there is a new element