private void addPanel(String remoteNum,JLabel l,JPanel p){
				container.removeAll();
		       JLabel label = l;
		       JPanel panel =p;
		    	JLabel label2 = new JLabel();
				label2.setPreferredSize(new Dimension(200, 70));
				label2.setFont(nameFont);
				label2.setAlignmentX(CENTER_ALIGNMENT);
				
				if(Phone.numbers.get(remoteNum)!=null) label2.setText(Phone.numbers.get(remoteNum).get(0));
				else label2.setText(remoteNum);
				
				Box photoBox = LoadPhoto(remoteNum);
				
				Box contBox = Box.createVerticalBox();
				contBox.add(Box.createVerticalGlue());
				contBox.add(label2);
				contBox.add(Box.createVerticalStrut(5));
				contBox.add(photoBox);
				if(label!=null){
					contBox.add(Box.createVerticalStrut(5));
					contBox.add(label);
				}
				contBox.add(Box.createVerticalStrut(20));
				contBox.add(panel);
				contBox.add(Box.createVerticalGlue());
					         
	           add(contBox);
				this.container.validate();
				this.container.repaint();

		 }