make flash error and sucsess thingy