refactored checks for full width layouts