add admin flag and ratings logic