Move <main> closure to 'footer'