Rewrote flashes to use partials dynamically