@Override
		public void actionPerformed(ActionEvent e) {
			if(e.getSource() == btnViewAppointmentCalendar) {
				//GOTO view appointment calendar
				ViewAppointmentCalendarPanel vacp = new ViewAppointmentCalendarPanel(parent, username);
				parent.getContentPane().add(vacp);
				CardLayout cl = (CardLayout) parent.getContentPane().getLayout();
				cl.next(parent.getContentPane());
				
			}
			else if (e.getSource() == btnPatientVisits) {
				//GOTO patientVisits
				ViewPatientHistoryPanel vphp = new ViewPatientHistoryPanel(parent, username);
				parent.getContentPane().add(vphp);
				CardLayout cl = (CardLayout) parent.getContentPane().getLayout();
				cl.next(parent.getContentPane());
			}
			else if (e.getSource() == btnRecordASurgery) {
				//GOTO View Visit History
				SurgeryPanel sp = new SurgeryPanel(parent, username);
				parent.getContentPane().add(sp);
				CardLayout cl = (CardLayout) parent.getContentPane().getLayout();
				cl.next(parent.getContentPane());
				
			}
			else if (e.getSource() == btnCommunicate) {
				//GOTO communicate
				DoctorMessagingPanel dmp = new DoctorMessagingPanel(parent, username);
				parent.getContentPane().add(dmp);
				CardLayout cl = (CardLayout) parent.getContentPane().getLayout();
				cl.next(parent.getContentPane());
				
			}
			else if (e.getSource() == btnEditProfile) {
				//GOTO rate a doctor
				DoctorEditProfilePanel depp = new DoctorEditProfilePanel(parent, username);
				parent.getContentPane().add(depp);
				CardLayout cl = (CardLayout) parent.getContentPane().getLayout();
				cl.next(parent.getContentPane());
				
			} else if (e.getSource() == btnViewMessages) {
				InboxPanel ip = new InboxPanel(parent, username);
				parent.getContentPane().add(ip);
				CardLayout cl = (CardLayout) parent.getContentPane().getLayout();
				cl.next(parent.getContentPane());
			} else if (e.getSource() == btnLogout) {
				CardLayout cl = (CardLayout) parent.getContentPane().getLayout();
				parent.getContentPane().remove(parent.getContentPane().getComponents().length-1);
				cl.last(parent.getContentPane());
			}
		}