correct check for sub layout view