how to implement voting into form