add method to select an option