control dialogs

Signed-off-by: Predrag Kanazir <predrag@arraystudio.com>