update alert message and disabled button as needed