button removed when already generated