add loading spinner