mid and end section templates + renders