added alert and ui