changed flash error display logic, added a helper for handling flash css selectors