update modal variables