fix disappearing buttons on cancel