refactored menuactivity