updates statusbar