add loading to main.html