moving response hash to top of controller and setting vars along the way