removed setInterval bug, smoother loading bar