Actually make custom barButtons work as you would expect.