edit select method