building the details template