refactor modals and vote buttons