Added flash message helper method