added voting and sorting by votes