update the index page to dynamic display the result