added callback for pathfinding to prevent multi-click