refactoring dictionaries, list and new dialog are working now