consolidated reference.html into main.html