fixing markup errors that were causing w3c validation to fail