fixed double display of success message