Implemented voting in the views