Collapse and expand should be prototyped methods