moved logic from the backend pollcontroller to the poll service