Fixed error in button

Fixed button error showing more than one button at a time.