refactor votes_controller with respond_with