Updating modal reference