removed resource template code from ShowNamedResource