fix bugs with disapearing buttons