instead of all this, maybe just remove the edit icon from the table