open modal changes loading div