finalizing index page