change import function
implement import dialog