Extract nav and flash section into partials