Clean up code
Add a flash helper to show flash contents