update admin layout to check variable