geo stats & refactor admin.js