corrected admin_layout check