Prepare the detail.html for detail information and histroy of AMI template