Moved tags data to its own namespace
Fixed incorrect function call
Fixed tag name not being deleted