almost done with logic for viewer.php animations with polls