added alert and button