Edit polls controller functionality