attribute manager refactoring and add update
functionality