move updatebarpos to statusbar.c