added alert and redirect