Change pol controller to render pol and events in json