move dialog to framework,and add dialog features