Added skeletal code to handle vote events