fix html to properly display loading spinner