progress made

alert now functions but only once, looping issue