main menu updated code