Make close button on route dialogue return to index.