fixed bug in votes
cleaned up votes controller