add vote api template, disable vote button after click