move most of the html into templates, migrated one of the old posts over