private void addAuthAPsTab()
	{
		updateAPList();

		sidePanel = new JPanel();
		sidePanel.setBackground(new Color(windowColor));
		sidePanel.setName("SidePanel");

		JButton scanBtn = new JButton("Live Scan");
		scanBtn.setToolTipText("Shows only result for last scan");
		scanBtn.addActionListener(new ActionListener () {
			public void actionPerformed(ActionEvent event) {

				for (int i = 0; i < av_net_panel.size(); i++)
				{//clear the side panel before any scan attempt
					sidePanel.remove(av_net_panel.get(i));
				}
				av_net_panel.clear();

				String command = "sh scan.sh";
				try {
					getRSSI.runShellScript(command);
				} catch (IOException e) {
					System.out.println("YOU ARE ON WINDOWS, AREN'T YOU?");//e.printStackTrace();
				} catch (InterruptedException e) {
					e.printStackTrace();
				}
				getRSSI.readMyFile("result.txt");

				updateSidePanel(av_net_panel);
			}
		});

		sidePanel.add(scanBtn);


		sidePanel.setEnabled(true);
		sidePanel.setVisible(true);

		sidePanel.setPreferredSize(new Dimension(220, 4000));

		sidesp1 = new JScrollPane(sidePanel);
		sidesp1.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);

		tb.addTab("Available Networks", sidesp1);

		authAP_sp = new JPanel();

		authAP_sp.setBackground(new Color(windowColor));
		authAP_sp.setName("SidePanel");
		authAP_sp.setPreferredSize(new Dimension(240, f.getHeight()));
/*
		authAP_sp.add(new JButton("Refresh"){
			private static final long serialVersionUID = 1L;
			{
				addActionListener(new ActionListener() {
					public void actionPerformed(ActionEvent event) {
						for (int i = 0; i < chbxlist.size(); i++)
						{
								PaintPane.Mac.get(i).setRepresented(chbxlist.get(i).isSelected());
						}
						updateAPList();
					}
				});
			}});
*/

		JButton checkAll = new JButton("check ALL"){
			private static final long serialVersionUID = 1L;
			{
				addActionListener(new ActionListener() {
					public void actionPerformed(ActionEvent event) {
						for (int i = 0; i < chbxlist.size(); i++)
						{
							chbxlist.get(i).setSelected(true);
							PaintPane.Mac.get(i).setRepresented(true);
						}
					}
				});
			}};
		
		authAP_sp.add(checkAll);
		JButton uncheckall = new JButton("uncheck ALL"){
			private static final long serialVersionUID = 1L;
			{
				addActionListener(new ActionListener() {
					public void actionPerformed(ActionEvent event) {
						for (int i = 0; i < chbxlist.size(); i++)
						{
							chbxlist.get(i).setSelected(false);
							PaintPane.Mac.get(i).setRepresented(false);
						}
					}
				});
			}};
			
		authAP_sp.add(uncheckall);
		authAP_sp.setEnabled(true);
		authAP_sp.setVisible(true);
		authAP_sp.setPreferredSize(new Dimension(220, 4000));

		sidesp2 = new JScrollPane(authAP_sp);
		tb.addTab("AP list", sidesp2);
	}