Add destroy method in GUI object