         }
     } else if ((active == 'debug') || (active == 'unhandled') || (active == 'status')) {
         currentState = '';
-	} else if (active == 'chanlist') {
-		currentState = 'list';
+    } else if (active == 'chanlist') {
+        currentState = 'list';
     } else {
         currentState = 'query';
     }

}

internal function chanlistupdate(updatesrc:String,b:SideButton):void {
	swrite('LIST');
}

internal function closetab(closesrc:String,cb:SideButton):void {

        addstab('unhandled');
    }
    addstab('status');
    addstab('chanlist');
    btns[uniqueidx-1].updatebtninit(chanlistupdate);
    cl.addEventListener('doubleClick',chanlistclick);
    setTimeout(clupdater,500);
    tabswitch('status');
    addEventListener('keyDown',keylistener);
    addEventListener('mouseMove',mouselistener);
