Refactored admin for settings and galeries