solve the index page