I think this is the function for flash. So should put in the flash.go. Not in the controller. it should put where use it