Updated votes controller