replace selectName with open tag hash