refactored admin controller - use case vs if with 3 branches, fix identation