[sr-dev] improving the dialog module