Handle select and deselect tags.

Written in a way to allow faceting in the future.