Adds progress bar when loading pages