alert callback function changes