added capability of clicking on stacked ternary to view/add/remove samples