change main menus and fix ruby 191 hacks for ruby 1.9.3