creating environment selection delegate