replaced AlertHelper with customAlert, but not all of it