Admin UI code refractoring