Add displayLocation function