changed index page and code