remove patch stuff. tidy up html in stats page