adding toggle menu snippet