refactored modalDialogs for adding collections