Refactored menu and command code
Context menu support for object select tool