Fix juvascript bug because of turbolinks, added wtyling to flash and notice