update vote detail ui and api