Added State Functions and Edit Function to the TagManager Class