Fix forward/backward links

Following the changes from @gonuke, make a few changes to the forward/backward links for traversing from session to session.