lib: commonise the actionbar menu