added update method for tags