buttons get removed properly