Support Collapse, Expand, and Reset.

Using jquery button UI compoments, create javascript functions
to support action above.