implemented addItemToLayer