Made flash directive compatible with Bootstrap.