Fixed setting _selectedButton local variable inside ToggleView class in setSelectedButton setter

It creates a conflict if one is trying to check for current selectedButton status when set manually