updated votes controller