Fixed messages implementation to set flashes