Fixed error in button

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