Now opens and closes content properly.