dont run hide_gui unless show_gui has been callled after last call to hide_gui