Added timeout for layout switcher to ignore false switches