Layout mode management