Add hooks support for gui, ncurses and remote interfaces