private void setupContents(int width, int height) {
		//set up contents
		contentsPanel.setBounds(0, 0, contentsWidth, height);
		contentsPanel.setPreferredSize(new Dimension(contentsWidth, height));
		contentsPanel.repaint();
		contentsPanel.setVisible(false);

		JButton mainMenuButton = contentsPanel.getMainMenuButton();
		mainMenuButton.addMouseMotionListener(genericListener);
		mainMenuButton.addActionListener(
				new ActionListener() {

					@Override
					public void actionPerformed(ActionEvent arg0) {
						mainMenuShowing = true;
						removeAllComponentsInContainer(slidePanel);
						slidePanel.stopPlaying();
						utilities.stopPlaying();
						scaleFactorX = (double)(getSize().width-insets.left-insets.right)/(double)720;
						scaleFactorY = (double)(getSize().height-insets.top-insets.bottom)/(double)540;
						mainMenuPanel.setBounds(0, 0, getSize().width-insets.left-insets.right, getSize().height-insets.top-insets.bottom);
						mainMenuPanel.resizeMainMenu(scaleFactorX, scaleFactorY);
						layers.setVisible(false);
						mainMenuPanel.setVisible(true);
					}
				});


		final JList<String> contentsList = contentsPanel.getContentsList();
		contentsPanel.getContentsList().addMouseMotionListener(genericListener);
		contentsPanel.getContentsList().addMouseListener(new MouseAdapter() {
			@Override
			public void mouseClicked(MouseEvent e) {
				frame.requestFocusInWindow();
				if(contentsPanel.getPageListShowing()==true){
					if(e.getClickCount() == 1) {            
						slidePanel.refreshSlide(slideList.getSlideList().get(contentsList.getSelectedIndex()));
						contentsList.clearSelection();  
					}
				}else{
					slideList = collection.get(contentsList.getSelectedIndex());
					slidePanel.loadPresentation(slideList);
					slidePanel.refreshSlide(slideList.getSlideList().get(0));

				}
			}
		});
		JButton changeButton = contentsPanel.getChangeButton();
		changeButton.addMouseMotionListener(genericListener);
		changeButton.addActionListener(new ActionListener() {

			@Override
			public void actionPerformed(ActionEvent arg0) {
				frame.requestFocusInWindow();
				contentsPanel.setScrollList(slideList);
			}
		});

	}