Fixed alert hide/display bug for chart.edit and msa.edit