improved facet client-side rendering, various bug fixes