cleaned up flash generation code with content_tag
tests