adding loader when the page is loading