replaced flash html with content_tag helper