changed controllers to return only json.