Added ability to select and deselect tags