private void updateCustomComponent()
    {
       resetFields();	
    	
       actionListPanel.removeAll();
       actionListPanel.add(actionComponents.get(rtsItem + actionListKeyword).get(0), BorderLayout.NORTH);
       actionListPanel.revalidate();
       actionListPanel.repaint();
       
       customPanel.removeAll();
       ArrayList<JComponent> list = actionComponents.get(rtsItem + actionMode);
       for(int i=0; i < list.size(); i++)
    	  customPanel.add(list.get(i));
       
       if((rtsItem + actionMode).equals("LineAdd BusStop")){
    	   customPanel.add(new JTextField("Will be added after " + previousBusStopName));
    	   if (removeDPanel == true){
    		   customPanel.remove(dPanel);
    		   removeDPanel = false;
    	   }
       }
       // Updates the view of the customPanel with new components
       customPanel.revalidate();
       customPanel.repaint();
       
       
    }