Selectmenu: Replace event handling code with extension