add a hook at the end of the gui constructor