added button to calculate best paths rather doing it automatically