adding unset trigger method and refactoring render/destroy structure