change modal api