removing empty buttons