add the viewer to display the contents from the database depending on the menu