remove unnecessary sections from the HTML