refactored containerEditor for easier use