abstracted hide success message function