del MainActivity. correct algorithm re selected menu item