Restructure details.html