added flash handler to app.erb