profile/appointments refactoring from appointments/myAppointments