add json to controllers