Added layout toggle