added stop-menu-close directive to prevent pref menu from closing when selecting an option