remove logic from admin layout