added alert and message