added vote macro for use in template