switchLayout only once