fix render index page