refactoring, cleaning up routes, and votes controller