alert and confirmation handling

still needs improvement