added pdf validation and display, people not logged in only see published docs, relevant_title resolution
resolved conflict in _show_text