messin round with jquery modal alerts and event handling