Fixed patient and encounter links in main title frame to ensure use correct session
More session fixes