this logic is working better and simpler

the button is nolonger disapearing