changing modes from gui to script

changing modes from gui to script

When switching the editing mode from gui to script (and vice versa), it 'd be nice if it opened up in the tab you were in, rather than always opening to the first tab.