How to automaitcally select desired items from the radio button based on previous selection