added tag editing functions