refactors flashes and footer
body partial is only used in simple layout, so its unnecessary
flashes refactor