check array for new tag before inserting, add remove tag functionality