connect ending.html and index.html