Check out this thread Change "Loading..." to a spinner for a related example. I think it could be adapted to your use case?