added loading to main modal