modal closes on caption update