More fussing with the actionitem callback in mainactivity.