fixed open, close, selected state for elememts