basic progress bar funactioning