Change pol controller to render pol and events in json for index