complete WebUI framework and similarity calculation