correcte functionality vote
added templates