Simplify setting flash values in controller