Latest working code with working search and voting button. however the app
will crash if voting button is pressed without being connected to
middleman.