Fix bug where sample tags were added when program was changing selection, instead of only when user is changing selection.