Add a statusbar callback