add json and new tempaltes for ranking