Using radio button to implement, then it's welcome to refactor or make it in good coding form