Dialog for add dict and some fix