Fixed enter key not working when creating/renaming a tag
Cleaned up code
Code formatting
Prevent the creation of siblings with the same name
Cleaned up code