Added page titles and tweaked selected link logic in navigation.