replaced alerts with jquery dialogs