flash extracted into own file and partials rendered