Add event handler to option button