Implemented dialog stack: each new dialog has parent window set to the previous (upper level) dialog.