it would be nice to split this dialog and the bellow one into own method.