You need to save a reference to the button in a variable and then check if that is valid before adding it again.