added controller rules for writings and news
added param for templating of context nav
removed unused code