Added functions render_tab_content_view and set_related_content_from_views - used for templating