fixed bugs on the index page