added historical controller for json output