 			let vc = segue.destination as! VuforiaViewController
 			vc.profileID = self.profileID
 			vc.sessionID = createSession()
+			NSLog("Successfully created a new session")
 		}
 	}
 

        cell.dateLabel.text = "Date: \(String(describing: currentSession.startTime))"
        cell.delegate = self
        return cell
    }
    
    func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
        return 84
    }

    
}

extension SubjectDetailViewController: MFMailComposeViewControllerDelegate{

	func createSession() -> String?{
		do{
			let realm = try Realm()
			guard let profile = realm.object(ofType: Profile.self, forPrimaryKey: profileID) else{
				NSLog("Error creating session, could not get user profile")
				return
			}
			let session = Session()
			try realm.write {
				profile.sessions.append(session)
			}
			return session.id
		}catch{
