Make remove row button properly disabled when applicable