Refactor admin view