adding loading to all pages