passing the ToolbarItem to the callback