setting up votes and events