added location handling for tooltips