add flashes and partials