Refactored admin controller in order to fix uninitialized constant from views