solving import and dialog issue