Make index page refreshing work.