add loading bar before page loads