add summary in index template, finished