refactor admin package