added edit dialog to compounds