refactor admin view