Added preference menu snippet