code for option menu