clean up and index page