worked on the updating bar, still unfinished