private void menuPage(){
		menuPane = new JPanel();
		menuPane.setBackground(SystemColor.activeCaption);
		menuPane.setLayout(null);

		//*****head label*****
		JLabel lbl_menu = new JLabel("Menu");
		lbl_menu.setFont(new Font("Arial", Font.BOLD, 30));
		lbl_menu.setBounds(445, 20, 83, 56);
		menuPane.add(lbl_menu);

		//*****patient label*****
		JLabel lbl_patient = new JLabel("Patient");
		lbl_patient.setHorizontalAlignment(SwingConstants.CENTER);
		lbl_patient.setFont(new Font("Arial", Font.PLAIN, 25));
		lbl_patient.setBounds(158, 167, 282, 42);
		menuPane.add(lbl_patient);

		//*****Patient_New*****
		JButton B_new = new JButton("New");
		B_new.setHorizontalAlignment(SwingConstants.LEFT);
		B_new.setIcon(new ImageIcon(getClass().getResource("plus.png")));
		B_new.setBackground(new Color(245, 222, 179));
		B_new.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				try {
					patientPage();
				} catch (ParseException e1) {
					e1.printStackTrace();
				}
				patient = null;
				PB_update.setEnabled(false);
				PB_save.setEnabled(true);
				cardLayout.show(contentPane, "Patient");
			}
		});
		B_new.setFont(new Font("Arial", Font.PLAIN, 25));
		B_new.setBounds(158, 219, 118, 56);
		menuPane.add(B_new);

		//*****Patient_Search*****
		JButton B_search = new JButton("Search");
		B_search.setHorizontalAlignment(SwingConstants.LEFT);
		B_search.setIcon(new ImageIcon(getClass().getResource("search.png")));
		B_search.setBackground(new Color(245, 222, 179));
		B_search.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				cardLayout.show(contentPane, "Search");
			}
		});
		B_search.setFont(new Font("Arial", Font.PLAIN, 25));
		B_search.setBounds(286, 219, 154, 56);
		menuPane.add(B_search);

		//*****Clinic*****
		JButton B_clinic = new JButton("Clinic");
		B_clinic.setIcon(new ImageIcon(getClass().getResource("setup.png")));
		B_clinic.setBackground(new Color(152, 251, 152));
		B_clinic.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				cardLayout.show(contentPane, "Clinic");
			}
		});
		B_clinic.setFont(new Font("Arial", Font.PLAIN, 25));
		B_clinic.setBounds(158, 352, 282, 108);
		menuPane.add(B_clinic);

		//only show Account or Timetable

		//*****My Timetable*****
		if (mode==1){
			PBB_myTimetable.setVisible(true);
			PBB_account.setVisible(false);
		}

		//*****Account*****
		if (mode==2){
			PBB_account.setVisible(true);
			PBB_myTimetable.setVisible(false);
		}

		//*****Log out*****
		JButton B_logOut = new JButton("Log out");
		B_logOut.setIcon(new ImageIcon(getClass().getResource("logout.png")));
		B_logOut.setBackground(new Color(255, 192, 203));
		B_logOut.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				logout();
			}
		});
		B_logOut.setFont(new Font("Arial", Font.PLAIN, 25));
		B_logOut.setBounds(537, 352, 282, 108);
		menuPane.add(B_logOut);
	}