adding layout switcher