update dialog context