add menu button
refactoring