Added selectMenuItemAtIndex method