setLocator function added to Container