Fix imports.
Add loading icon for shortest path.