added loading spinner while model is resolving