add choose button function