Add a helper to determine the selected page in the top navigation.