better position and size of dialogs
merge with last changes