update alert flow (change to function pointer)