change smartmenu to onclick