add destroy methods to ui