get button first before calling removeAttribute