add loading spin when waiting for data