+dialogs windows +function to initialize