minor changes

mainly prevent endless loop in dialogControl from happening