[webui] speed up sitemap_projects
[webui] simplify boolean logic