update modal scripts