Replace div with footer and main element