add callback to option menu