updates statusbar behaviour