flags and dialog updated