buttons disable depending on which table has the current selection