nwgui will always be undefined