Added possibility to keep opened dialog