updates details template and index.html