add removing of the uihooks, on destroyed