added cleanup methods for algo and shortestPath display