Adding toggle functionality to options buttons.