split backend layout into partials