adding alerts and confirms