private void createButtons(){
		java.net.URL buttonIcon = Paintimator.class.getResource("images/backPage.png");
		backPage = new JButton(new ImageIcon(buttonIcon));
		backPage.setToolTipText("Previous Page");
		backPage.addActionListener(new ActionListener() {
			@Override
			public void actionPerformed(ActionEvent arg0) {
				centerPanel.remove(layeredPanelList.getSelected());	
				LayeredPanel tmp = layeredPanelList.getPrev();
				animationPane.updateAnimation(layeredPanelList, layeredPanelList.getIntSelectedPanel() +1);
				refreshDrawPanel(tmp);
				setCurrentCanvasListener(tmp);
				
			}	
		});
		buttonIcon = Paintimator.class.getResource("images/FwPage.png");
		
		fwdPage = new JButton(new ImageIcon(buttonIcon));
		fwdPage.setToolTipText("Next Page");
		fwdPage.addActionListener(new ActionListener(){

			@Override
			public void actionPerformed(ActionEvent arg0) {
				if(layeredPanelList.isAtEnd()){
					int i = JOptionPane.showOptionDialog(context,
			                "Would you like to add a next page?",
			                "Next Page",
			                JOptionPane.YES_NO_CANCEL_OPTION,
			                JOptionPane.QUESTION_MESSAGE,
			                null,
			                new String[]{"Yes, Blank Page", "Yes, Page Copy", "Cancel"},
			                "Yes, Blank Page");

			        switch (i) {
			            case JOptionPane.NO_OPTION:
			                centerPanel.remove(layeredPanelList.getSelected());
			                animationPane.updateAnimation(layeredPanelList, layeredPanelList.getIntSelectedPanel()+1);

			                //Code to add previous image as background of new page
			                BufferedImage bi = layeredPanel.paneToBufferedImg();
			                layeredPanel = new LayeredPanel();
			                layeredPanel.setBackground(bi);

			                layeredPanel.addMouseListener(myListener);
			                layeredPanel.addMouseMotionListener(myListener);
			                setCurrentCanvasListener(layeredPanel);
			                layeredPanel.setPreferredSize(new Dimension(width - 450, height - 300));
			                layeredPanelList.add(layeredPanel);
			                animationPane.updateAnimation(layeredPanelList, layeredPanelList.getIntSelectedPanel() + 1);
			                refreshDrawPanel(layeredPanelList.getSelected());
			                toolPanel.resetState();
			                layeredPanelList.getSelected().clearRootPane();
			                break;
			            case JOptionPane.YES_OPTION:
			                centerPanel.remove(layeredPanelList.getSelected());
			                animationPane.updateAnimation(layeredPanelList, layeredPanelList.getIntSelectedPanel()+1);

			                layeredPanel = new LayeredPanel();

			                layeredPanel.addMouseListener(myListener);
			                layeredPanel.addMouseMotionListener(myListener);
			                setCurrentCanvasListener(layeredPanel);
			                layeredPanel.setPreferredSize(new Dimension(width - 450, height - 300));
			                layeredPanelList.add(layeredPanel);
			                animationPane.updateAnimation(layeredPanelList, layeredPanelList.getIntSelectedPanel() + 1);
			                refreshDrawPanel(layeredPanelList.getSelected());
			                toolPanel.resetState();
			                layeredPanelList.getSelected().clearRootPane();
			            default :
			                break;
			        }
					
				}else{
				
				centerPanel.remove(layeredPanelList.getSelected());	
				LayeredPanel tmp = layeredPanelList.getNext();
				animationPane.updateAnimation(layeredPanelList, layeredPanelList.getIntSelectedPanel() +1);
				refreshDrawPanel(tmp);
				setCurrentCanvasListener(tmp);
				}
			}		
		});
	}