public FriendListPanel(final String email, FacelookAppGUI a) {
		super();
		container = a;
		this.setBackground(Color.decode("#3b5998"));
		this.setPreferredSize(new Dimension(770,539));
		setLayout(null);
		
		JLabel lblFacelook = new JLabel("Facelook");
		lblFacelook.setFont(new Font("Lucida Fax", Font.PLAIN, 32));
		lblFacelook.setForeground(Color.WHITE);
		lblFacelook.setBounds(12, 13, 199, 32);
		add(lblFacelook);
		
		JLabel lblPendingRequests = new JLabel("Pending Requests");
		lblPendingRequests.setForeground(Color.WHITE);
		lblPendingRequests.setFont(new Font("Lucida Fax", Font.PLAIN, 18));
		lblPendingRequests.setBounds(12, 58, 199, 32);
		add(lblPendingRequests);
		
		
		JScrollPane scrollPane1 = new JScrollPane();
		scrollPane1.setBounds(22, 103, 380, 91);
		add(scrollPane1);
		JPanel panel = new JPanel();
		scrollPane1.setViewportView(panel);
		panel.setLayout(new GridLayout(0, 1, 0, 5));
		
		//Retrieves 2 ArrayLists of friends - current friends, and pending friends
		ArrayList<ArrayList<String>> friendLists = FriendController.listFriends(email);
		
		/******************************/
		/******************************/
		/****** PENDING FRIENDS *******/
		/******************************/
		/******************************/
		/*
		 * Fill this grid with buttons that link to profile pages of people who requested you as a friend i.e.
		 * JButton link = new JButton("Patrick Woody");
		 * link.addActionListener(new ActionListener(){ ... });
		 * panel.add(link);
		 */
		ArrayList<String> friends = new ArrayList<String>();
		
		if(friendLists != null) {
			friends = friendLists.get(1);
		}
		
		for(String friendPending: friends){
			
			//ignore empty strings
			if(friendPending.length() == 0) {
				continue;
			}

			//declares email as a final String to pass in to creation of new ProfilePanel
			final String pendingName = friendPending;
			
			String userName = NewsfeedController.getUserName(friendPending);
			JButton friendButton = new JButton(userName);
			friendButton.addActionListener(new ActionListener(){   
				//when you press the pending friend button, should go to that user's profile
				public void actionPerformed(ActionEvent e){
					
					container.replace(new ProfilePanel(pendingName, email, container));
					
				}
				
			});
			panel.add(friendButton);
		
		}
		
		
		
		JLabel lblFriends = new JLabel("Friends");
		lblFriends.setForeground(Color.WHITE);
		lblFriends.setFont(new Font("Lucida Fax", Font.PLAIN, 18));
		lblFriends.setBounds(12, 209, 199, 32);
		add(lblFriends);
		
		
		JScrollPane scrollPane = new JScrollPane();
		scrollPane.setBounds(22, 242, 380, 284);
		add(scrollPane);
		JPanel panel_1 = new JPanel();
		scrollPane.setViewportView(panel_1);
		panel_1.setLayout(new GridLayout(0, 1, 0, 5));
		
		/******************************/
		/******************************/
		/****** ACTUAL FRIENDS ********/
		/******************************/
		/******************************/
		/*
		 * Fill this grid with buttons that link to profile pages i.e.
		 * JButton link = new JButton("Patrick Woody");
		 * link.addActionListener(new ActionListener(){ ... });
		 * panel_1.add(link);
		 */
		ArrayList<String> friends2 = new ArrayList<String>();
		
		//gets list of actual friends
		if(friendLists != null) {
			friends2 = friendLists.get(0);
		}
		
		for(String friend: friends2){
			//ignore empty strings
			if(friend.length() == 0) {
				continue;
			}
			
			//declare as final so we can pass this along to the ProfilePanel
			final String friendName = friend; 
			String userName = NewsfeedController.getUserName(friend);
			JButton friendButton = new JButton(userName);
			friendButton.addActionListener(new ActionListener(){   
				
				public void actionPerformed(ActionEvent e){
					
					container.replace(new ProfilePanel(friendName, email, container));
					
					
				}//go to user's profile
				
			});
			panel_1.add(friendButton);
		
		}
		
		
		JButton btnNewsFeed = new JButton("News Feed");
		btnNewsFeed.setBounds(661, 49, 97, 25);
		add(btnNewsFeed);
		btnNewsFeed.addActionListener(new ActionListener(){

			@Override
			public void actionPerformed(ActionEvent e) {
				container.replace(new NewsFeedPanel(email, container));
			}
			
		});
	}