Added open/close functionality for containers