allow parameterization of publicly_viewable in template