added alert and confirm pop code to my plugin