add alert before submitting to dash