Commit before changing index page