Move poll state handling to its own module
Move poll updating logic to a module to prevent multiple updates for same poll rendered multiple times.
Move poll updating logic to a module to prevent multiple updates for same poll rendered multiple times.
This will create a new commit in order to revert the existing changes.